package com.application.merecipe.client;

import java.util.List;

import com.application.merecipe.shared.Recipe;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>RecipeService</code>.
 */
public interface RecipeServiceAsync {

	void loadRecipes(String searchString, AsyncCallback<List<Recipe>> callback);

	void loadRecipe(Recipe recipe, AsyncCallback<Recipe> callback);

	void saveRecipe(Recipe recipe, AsyncCallback<Recipe> callback);

	void deleteRecipe(Recipe recipe, AsyncCallback<Void> callback);
	
}
